<meta charset="utf-8" />
<div class="container-fluid">

<div class="row">
<div class="panel panel-primary">
			<div class="panel-heading">
				<div class="panel-title">Tabela de data Atual {{ dataAtual }}</div>
			</div>
			<div class="panel-body">
			<form ng-submit="exibirRelatorioGeral()">
			
		    <div class="control-group" >
                <label class="control-label" for="de">De:</label>
                <div class="controls">
                    <input type="date" class="form-control "  ng-model="projeto.de" id="de"   required  placeholder="De"    />
                </div>
            </div>
            
             <div class="control-group" >
                <label class="control-label" for="a">A:</label>
                <div class="controls">
                    <input type="date" class="form-control "  ng-model="projeto.a" id="a"   required  placeholder="A"    />
                </div>
            </div><br />
            <div class="control-group pull-left">
            <button type="submit" class="btn btn-primary"><i class="fa fa-bar-chart-o"></i> Exibir Relatório</button>
            </div>
            
            </form>
            
            <form action="/ProjetoRelatorioBackEnd/rest/agenda/downloadPdfGeral" ng-show="esconderBotaoImprimir">
             <div class="control-group pull-right">
            <button type="submit" class="btn btn-primary" ><i class="fa fa-bar-chart-o"></i> Download do Relatório</button>
            </div>
            </form>
            <br /><br /><br />
				
					<div class="col-xs-3">
						<input type="text" ng-model="search" class="form-control"
							placeholder="Procurar" />
					</div>
					
									<div class="col-xs-3">
  <select class="form-control"  ng-model="filtro.status" ng-change="filtrar(filtro.status)" ng-show="esconderFiltro">
   
     <option value="" selected>Selecione...</option>
     <option  value="A" >Agendado(os)</option>
     <option  value="I" >Iniciado(os)</option>
     <option  value="T" >Terminado(os)</option>
     <option  value="todos" >Ver Todos</option>
  </select>
					</div>

			</div>
			<div class="table-responsive">
			<table ng-table="tableParams" class="table">

				<thead>
					<tr>
						<th>#</th>
                        <th>Descrição</th>
                        <th>Tipo de folha</th>
                        <th>valor</th>
                        <th>Data de Recebimento</th>
                        <th>Data de Início</th>
                        <th>Data de Entrega</th>
                        <th>Status</th> 
						
					</tr>
				</thead>
				<tbody>
				
   
	<tr ng-repeat="item in relatorio | filter: search"  ng-if="filtro.status == item.status || filtro.status != null || item != ''">
        <td>{{ $index + 1 }}</td>
         <td>{{ item.descricao }}</td>
        <td>{{ item.folha.tipoFolha }}</td>
        <td>{{ item.folha.valor | currency }}</td>
        <td>{{ item.dataRecebimento }}</td>
        <td>{{ item.dataInicio }}</td>
        <td>{{ item.dataEntrega }}</td>
        <td>{{ item.status }}</td>


<!-- 						<td><a ng-href="#/projeto-ver/{{item.id}}" -->
<!-- 							class="btn btn-default btn-xs"><i class="fa fa-eye"></i></a>  -->
<!--                               <a  class="btn btn-primary btn-xs" ng-href="#/editar/{{ item.id }}"><i class="fa fa-edit"></i></a> -->
<!--                         <a ng-href="" ng-click="excluir(item.id, item)"  class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i></a> -->
					</tr>
				</tbody>
				 <tr><td><b>Total: </b> {{ resultadoTotal | currency }}  </td></tr>
			</table>
			</div>
		</div>

</div>